<?php
	if(empty($_COOKIE['userid']) || empty($_COOKIE['username'])) {
		header("refresh:2,url=login.php");
		echo "请先登陆";
		die;
	}

?>